package com.springcloud.feigndemoserver1000;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.retry.annotation.EnableRetry;

@EnableFeignClients
@SpringBootApplication
@EnableRetry(proxyTargetClass = true)
/*
@EnableRetry：此注解用于开启重试框架，可以修饰在SpringBoot启动类上面，也可以修饰在需要重试的类上
        proxyTargetClass：Boolean类型，用于指明代理方式【true：cglib代理，false：jdk动态代理】默认使用jdk动态代理*/
public class FeignDemoServer1000Application {
    public static void main(String[] args) {
        SpringApplication.run(FeignDemoServer1000Application.class, args);
    }
}
